package com.atguigu.gmall.index.aspect;

public class MathCalculator2 implements Calculator {
    private Calculator calculator;
    public MathCalculator2(Calculator calculator) {
        this.calculator = calculator;
    }

    @Override
    public int add(int a, int b) {
        return calculator.add(a,b);
    }

    @Override
    public int sub(int a, int b) {
        return calculator.sub(a,b);
    }

    @Override
    public int mul(int a, int b) {
        return calculator.mul(a,b);
    }
}
